package com.linkmcn.uaa.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

@Data
public class LinkmcnUser extends org.springframework.security.core.userdetails.User {


    private Long tenantId;
    private Long userId;
    /**
     * 是否通过审核
     */
    private boolean passAudit;


    public LinkmcnUser(String username, String password, boolean enabled, boolean accountNonExpired,
                       boolean credentialsNonExpired, boolean accountNonLocked,
                       Collection<? extends GrantedAuthority> authorities,
                       Long userId, Long tenantId) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
        this.tenantId = tenantId;
        this.userId = userId;
    }
}
